package cn.luischen.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2017/3/10 010.
 */
public class DateKit2 {

	public static String formatDateByUnixTime(Integer unixTime, String dateFormat) {
		
		if (dateFormat != null) {
			SimpleDateFormat format = new SimpleDateFormat(dateFormat);
			if (unixTime != null) {
				Date date=new Date(unixTime * 1000L);
				return format.format(date);
			}
		}

		return "";
	}

}
